// Copyright Epic Games, Inc. All Rights Reserved.


#include "class04GameModeBase.h"
#include "MyActor.h"

void Aclass04GameModeBase::StartPlay()
{
    FActorSpawnParameters spawnParams;
    spawnParams.Name = "NewActor01";
    spawnParams.Owner = this;

    FVector pos(0.0f, 0.0f, 100.0f);
    FRotator eulers(45.0f, 0.0f, 0.0f);
    AMyActor* instance = GetWorld()->SpawnActor<AMyActor>(
        pos, eulers, spawnParams);

    UE_LOG(LogTemp, Warning, TEXT("New actor: %s"), *(instance->GetName()));
    AGameModeBase::StartPlay();
}
